
require('./bootstrap');
import store from './store';
import Vue from 'vue';
// window.Vue = require('vue');
//通过正则递归批量注册组件  自动注册
const files=require.context('./components',true,/\.vue$/i);
files.keys().map(key=>{
    Vue.component(key.split('/').pop().split('.')[0],files(key).default)
}
);

// Vue.component('Register', require('./components/Register.vue').default);

const app = new Vue({
    el: '#app',
    store:store
});
